import taichi as ti   


@ti.data_oriented
class foo:
    @ti.kernel
    def Method0(self):
        ...
    @ti.kernel
    def Method1(self):
        ...
    @ti.kernel
    def Method2(self):
        ...


